package com.eva.dao.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("部门")
@TableName("`system_department`")
public class SystemDepartment extends BaseModel {

    @TableField("`parent_id`")
    @ApiModelProperty(value="上级部门")
    private Integer parentId;

    @TableField("`code`")
    @ApiModelProperty(value="部门编码")
    private String code;

    @TableField("`name`")
    @ApiModelProperty(value="部门名称")
    private String name;

    @TableField("`mobile`")
    @ApiModelProperty(value="部门手机号码")
    private String mobile;

    @TableField("`mobile_digest`")
    @ApiModelProperty(value="部门手机号码摘要")
    private String mobileDigest;

    @TableField("`email`")
    @ApiModelProperty(value="部门邮箱")
    private String email;

    @TableField("`email_digest`")
    @ApiModelProperty(value="部门邮箱摘要")
    private String emailDigest;

}
